home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 2.toast / pc / sample code / platforms and tools / macapp / windows menu / windows menu doc next >
Encoding:
Text File  |  2000-09-28  |  753 b   |  12 lines

  1. Windows Menu
  2.  
  3. These three files go in your ".r" and your override of TApplication. At first I thought that creating
  4. lists, walking the Window Manager list and so forth every time through DoSetupMenus() would take way
  5. too much time. The fact is that it doesn’t. The only serious problem with this technique is that it
  6. makes use of the rather obscure fact that MacApp puts a reference to the parent TWindow in the refCon
  7. field of each Window Manager window. I don’t consider the fact that it walks the Window Manager
  8. window list a problem since that list is documentedin Inside Mac. 
  9.  
  10. The biggest advantage of this technique is that it requires no additional support from the TWindows
  11. or from the TApplication. Once you put it in you can forget about it.
  12.